﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrderPrint.aspx.cs" Inherits="TimKen.Web.Order.OrderPrint" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        body, td, th
        {
            font-size: 12px;
        }
    </style>
    <style media="print">
        .noprint
        {
            display: none;
        }
    </style>
    
    
</head>
<body>
   
    <center class="noprint">
        <input onclick="window.print();" type="button" value="打印">
      &nbsp;<input
            type="button" value="关闭窗口" onclick="javascript:window.close()"></center>
    <form id="form1" runat="server">
    <table width="100%" cellpadding="1" cellspacing="1">
        <tr>
            <td align="right" width="125">
                <img src="../images/logo2.jpg" width="60" />
            </td>
            <td colspan="3" align="center">
                <b>
                    <h1>
                        销售订单 Sales Order</h1>
                </b>
            </td>
        </tr>
        <tr>
            <td width="20%">
                <div align="right">
                    <strong>Order No.订单号:</strong></div>
            </td>
            <td width="34%">
                <%=Order.OrderNo%>
            </td>
            <td width="20%">
                <div align="right">
                    <strong>Date日期: </strong>
                </div>
            </td>
            <td>
                <%=Order.CreateDate.ToShortDateString()%>
            </td>
        </tr>
        <tr>
            <td>
                <div align="right">
                    <strong>Contact 联系人：</strong></div>
            </td>
            <td>
                <%=Order.ContactPerson%>
            </td>
            <td>
                <div align="right">
                    <strong>Company公司名称:</strong></div>
            </td>
            <td>
                驿桥（上海）商贸有限公司
            </td>
        </tr>
        <tr>
            <td>
                <div align="right">
                    <strong>Customer客户名称:</strong></div>
            </td>
            <td>
                <% TimKen.BussLogic.CustomerManager cm = new TimKen.BussLogic.CustomerManager();
                   TimKen.DataEntity.Customer customer = cm.GetModel(Order.CustomerID);
                %>
                <%=customer.CustomerName%>
            </td>
            <td>
                <div align="right">
                    <strong>TEL电话:</strong></div>
            </td>
            <td>
                021-611735008633
            </td>
        </tr>
        <tr>
            <td>
                <div align="right">
                    <strong>TEL电话:</strong></div>
            </td>
            <td>
                <%=Order.Telephone %>
            </td>
            <td>
                <div align="right">
                    <strong>FAX传真:</strong></div>
            </td>
            <td>
                021-61173511
            </td>
        </tr>
        <tr>
            <td>
                <div align="right">
                    <strong>FAX传真:</strong></div>
            </td>
            <td>
                <%=Order.Fax%>
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
                <div align="right">
                    <strong>Cur币种:</strong></div>
            </td>
            <td>
                <%=Order.Currency%>
            </td>
            <td>
            </td>
            <td>
            </td>
        </tr>
    </table>
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td align="center">
                <table width="90%" border="1px" cellpadding="0" cellspacing="0" style="border-collapse: collapse;">
                    <tr style="background-color: #FFCC00">
                        <td>
                            ItemCode<br />
                            物料号
                        </td>
                        <td>
                            Part Number<br />
                            产品型号
                        </td>
                        <td>
                            QTY<br />
                            数量
                        </td>
                        <td>
                            Cur<br />
                            币种
                        </td>
                        <td>
                            Delivery Term<br />
                            发运条款
                        </td>
                        <td>
                            Unit Price
                            <br />
                            单价
                        </td>
                        <td>
                            Total Price
                            <br />
                            总价
                        </td>
                        <td>
                            Estimated Delivery<br />
                            预计交货期
                        </td>
                        <td>
                            Remark
                            <br />
                            备注
                        </td>
                    </tr>
                    <%if (drs != null && drs.Count > 0)
                      {
                          foreach (System.Data.DataRow dr in drs)
                          {
                    %>
                    <tr>
                        <td>
                            <%=dr["ItemCode"]%>
                        </td>
                        <td>
                            <%  TimKen.BussLogic.PDescriptionManager pdm = new TimKen.BussLogic.PDescriptionManager();
                                TimKen.DataEntity.PDescription pd = pdm.GetModel(int.Parse(dr["ProductID"].ToString()), LanguageID);
                            %>
                            <%=pd.Name%>
                        </td>
                        <td>
                            <%=dr["Quantity"]%>
                        </td>
                        <td>
                            <%=Order.Currency%>
                        </td>
                        <td>
                            不含税不含运费
                        </td>
                        <td>
                            ¥<%=dr["FinalPrice"]%>
                        </td>
                        <td>
                            ¥<%=dr["TotalAmount"]%>
                        </td>
                        <td>
                            <%=Order.ExpectDate%>
                        </td>
                        <td>
                            收到货款之日起
                        </td>
                    </tr>
                    <%}
                       }%>
                    <tr>
                        <td colspan="2">
                            <b>Total 共计:</b>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            ¥<%=Order.BaseAmount %>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <b>Grand Total 总计(含税):</b>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                            ¥<%=Order.TotalAmount %>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr height="10px">
            <td>
            </td>
        </tr>
        <tr>
            <td style="padding-left: 5%">
                <table width="90%">
                    <tr>
                        <td colspan="2">
                            <%=Order.ContractTerm %>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            Remark 备注
                        </td>
                        <td align="left">
                            请将确认订单邮件或传真至: <b>驿桥客服/ 联系电话：021-61173500 </b>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                        </td>
                        <td align="left">
                            驿桥（上海）商贸办公室 <b>传真号码: +86-21-61173511</b>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                        </td>
                        <td align="left">
                            Pls email or fax the Order Acknowledgement to CSR/Tel：021-61173500
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                        </td>
                        <td align="left">
                            FirstBridge office fax No.: +86-21-6117 3511
                        </td>
                    </tr>
                    <tr style="height: 30px">
                        <td align="left">
                            <b>签章:</b>
                        </td>
                        <td align="left" style="text-decoration: underline">
                            _________________________________________________
                        </td>
                    </tr>
                    <tr style="height: 30px">
                        <td align="left">
                            <b>批准人:</b>
                        </td>
                        <td align="left" style="text-decoration: underline">
                            _________________________________________________
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
